package com.zeno.soil.rbac.repository.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 *
 * 主体角色
 *
 * @author zeno
 */
@Data
@NoArgsConstructor
@TableName(value="subject_role")
public class SubjectRole{

  /**
   * 角色编码
   */
  @TableField(value="role_code")
  private Long roleCode;

  /**
   * 主体ID
   */
  @TableField(value="subject_id")
  private Long subjectId;

  /**
   * 主体类型
   */
  @TableField(value="subject_type")
  private Long subjectType;

  /**
   * 是否固定用户角色，固定用户角色不可删除
   */
  @TableField(value="fixed")
  private Integer fixed;

  /**
   * 创建人ID
   */
  @TableField(value="create_by")
  private Long createBy;

  /**
   * 创建时间
   */
  @TableField(value="create_at")
  private Date createAt;

  public static final String COL__ID = "_id";

  public static final String COL_ROLE_CODE = "role_code";

  public static final String COL_SUBJECT_ID = "subject_id";

  public static final String COL_SUBJECT_TYPE = "subject_type";

  public static final String COL_FIXED = "fixed";

  public static final String COL_CREATE_BY = "create_by";

  public static final String COL_CREATE_AT = "create_at";
}